//package com.springclouddemo.repo.user.controller;
//
//import com.springclouddemo.common.Response;
//import com.springclouddemo.repo.user.feign.UserControllerClient;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.PathVariable;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//import java.util.HashMap;
//import java.util.Map;
//
//@RestController
//@RequestMapping("client/v1/consumer/feign")
//public class ConsumerFeignController {
//    @Autowired
//    private UserControllerClient client;
//
//    @GetMapping("/hello/{name}")
//    public String hello(@PathVariable("name") String name) {
//        String response = client.hello(name);
//        return response;
//    }
//    @GetMapping("/say/{name}")
//    public Response<Map<String, Object>> say(@PathVariable("name") String name) {
//        Response<Map<String, Object>> response = client.say(name);
//        Map<String, Object> userinfo = new HashMap<>();
//        userinfo.put("age", "100");
//        userinfo.put("phone", "18181818181");
//        response.getResult().putAll(userinfo);
//        response.setMsg("获取信息成功!");
//        return response;
//    }
//}
